<template>
    <div>

        <el-card>
            <el-row >
                <el-col :span="18">

                    <el-input placeholder="请输入内容" v-model="form.name" class="input-with-select">
                        <span slot="prepend">系统名称：</span>



                        <el-button slot="append" icon="" @click="saveConfig">保存</el-button>
                    </el-input>
                </el-col>

            </el-row>


        </el-card>
    </div>
</template>

<script>
    export default {
        name: "system",
        data(){
            return{
                form:{
                    name:''
                }
            }
        },
        methods:{
            async saveConfig(){
              let {data:res}=await  this.$http.put('sysconfig',this.form)
                if (res.meta.status != 200) {
                    return this
                        .$message.error(res.meta.msg)
                }

                this.$message.success(res.meta.msg)
                    this.$router.push('/login')
                console.log(res)

            }
        }
    }
</script>

<style scoped>

</style>
